package com.logicvoid.rosiesettingsz;

import android.content.Context;
import android.util.Log;

import com.logicvoid.rosiesettingsz.ShellCommand.CommandResult;

public class KangDetection {
	private static final String TAG = "KangDetection";
	
	public static Boolean isKanged()
	{
		Boolean returnValue = false;
		ShellCommand cmd = new ShellCommand();
		CommandResult r = cmd.sh.runWaitFor("getprop ro.build.description");
		
		if (!r.success()) {
			  Log.v(TAG, "Error " + r.stderr);
			} else {
			String stdout = r.stdout;
			  
			//  
			if(stdout.contains("Synergy"))
			  {
				  returnValue = false;
			  }
			  else
			  {
				  returnValue = true;
			  }			   
			  
			}		
		
		return returnValue;
		
		
	}
	

}
